package cn.edu.seig.springks.pojo;

import lombok.Data;

@Data
public class order {
    int o_id;
    int u_id;
    int p_id;
    product product;
    int quantity;
    double total;
    String address;
    String time;

    public order(int u_id, int p_id, int quantity, double total, String address) {
        this.u_id = u_id;
        this.p_id = p_id;
        this.quantity = quantity;
        this.total = total;
        this.address = address;
    }

    public order() {

    }

    public order(int i, String s, int i1, double v, String s1, String date) {
        this.o_id = i;
        this.quantity = i1;
        this.total = v;
        this.address = s1;
        this.time = date;
    }
}
